﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HumanResources
{
    public class ValidationException : ApplicationException
    {
        public ValidationException(String msg)
            : base(msg)
        { }
        public ValidationException(String pname, String invalidvalue)
            : base("Invalid property value specified for " + pname +
                " : " + invalidvalue)
        { }
        public ValidationException (String pname, double min, double max, double actual)
            : base ("Value " + actual + " for property " + pname + " must be between " +
            min + " and " + max)
        {}
    }
}
